//
//  NetWorkRequestManager.h
//  Charles
//
//  Created by lanou3g on 16/5/4.
//  Copyright © 2016年 liu. All rights reserved.
//

#import <Foundation/Foundation.h>

/// 定义枚举值
typedef NS_ENUM(NSInteger){
    GET,
    POST
} URLRequestMethod;

/// 定义返回值block网络请求结果
typedef void(^ResultBlock)(NSData *data,NSURLResponse *response,NSError *error);

@interface NetWorkRequestManager : NSObject

/// 网络请求的方法
+ (void)requestUrl:(NSURL *)url RequestMethod:(URLRequestMethod)method Params:(NSDictionary *)param Result:(ResultBlock)resultBlock;

@end
